#coding=utf-8
__author__ = 'Meteor'
from page.index import Login_page,Index_page
from tools.driver import Driver
import re
# driver = Driver().get_driver()
# l = Login_page(driver)
# l.input_name('meteor')
# # print(l.get_page_source())
#
# print(re.findall("华夏ERP",l.get_page_source()))


def assert_re(pattern,string):
    if re.findall("华夏ERP", string):
        return True
    else:
        return False

def assert_url(url,ex_url):
    return  url == ex_url
